const express = require('express')
const Joi = require('joi')
const loginController = require('../router-handle/login')
const expressJoi = require('@escook/express-joi')
const { loginLimit } = require('../limit/login')

const router = express.Router()
router.post('/register', expressJoi(loginLimit), loginController.register)
router.post('/login', expressJoi(loginLimit), loginController.login)

module.exports = router
